
layui.use("form",function () {

    /**
     * 设置用户页面名字
     */
    var id=$.session.get("id");
    $("#myId").html(id);
    var name=$.session.get("name");
    $("#myName").text(name);
    var college=$.session.get("college");
    $("#myCollege").text(college);
    var identity=$.session.get("identity");



    /**
     * 复选框的全选与取消全选
     */
    var form=layui.form;
    form.on("checkbox(all)",function (data) {
        var mark = data.elem.checked;
        if (mark == true) {
            $(".single").prop("checked", true);
            form.render();
        } else {
            $(".single").prop("checked", false);
            form.render();
        }
    });
});


